package com.zj.easytotwitter.app;

import android.app.Application;
import android.content.Context;
import android.view.WindowManager;


/**
 * Created by ZJ
 * 用静态内部类建单例，保证线程安全
 */
public class EttApplication extends Application {
	private static EttApplication instance;
	private WindowManager.LayoutParams windowParams = new WindowManager.LayoutParams();
	public WindowManager.LayoutParams getWindowParams() {
		return windowParams;
	}
	public static EttApplication getInstance(){
		return instance;
	}

	@Override
	public void onCreate() {
		super.onCreate();
		instance = this;
	}

	public static Context getContext() {
		return instance.getApplicationContext();
	}

}
